﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Master/FrameMain.Master" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="ECommerce.Web.ECAdmin.Order.List" %>
<%@ Register Src="../../Common/Controls/Selecter.ascx" TagName="Selecter" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../../Common/Style/Skin1/Pager.css" rel="stylesheet" type="text/css" />

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="toolbar">
    <ul>
        <li id="liTransfer" runat="server"><a id="lnkTransfer" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/move.gif);">
            &nbsp;</b><asp:Literal ID="Literal1" runat="server" Text="处理"></asp:Literal></span></a></li>
        <li id="liSend" runat="server"><a id="lnkSend" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/move.gif);">
            &nbsp;</b><asp:Literal ID="Literal2" runat="server" Text="配送"></asp:Literal></span></a></li>
        <li id="liComplete" runat="server"><a id="lnkComplete" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/move.gif);">
            &nbsp;</b><asp:Literal ID="Literal3" runat="server" Text="完成"></asp:Literal></span></a></li>
        <li id="liFail" runat="server"><a id="lnkFail" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/move.gif);">
            &nbsp;</b><asp:Literal ID="Literal4" runat="server" Text="失败"></asp:Literal></span></a></li>
     </ul>
    </div>
    <div id="head">
        <div class="left">
            <span style="font-weight: bold">
                <asp:Literal ID="litTitle" runat="server"></asp:Literal>
                <asp:DropDownList ID="drpPayState" runat="server" AutoPostBack="True" 
                onselectedindexchanged="drpPayState_SelectedIndexChanged">
                </asp:DropDownList>
                </span>
        </div>
        <div class="right">
            <asp:TextBox ID="txtName" runat="server" Width="100px" CssClass="txt"></asp:TextBox>
            <asp:Button ID="btnQuery" runat="server" Text="模糊查询" OnClick="btnQuery_Click" />
        </div>
    </div>
    <div id="list">
        <asp:HiddenField ID="hidSelectIDs" runat="server" Value="" />
        <table id="lvList" cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr id="lvHeader" runat="server">
                <th class="sp">
                    &nbsp;
                </th>
                <th class="chk">
                    <asp:CheckBox ID="chkSelectAll" runat="server" />
                </th>
                <th>
                    订单号
                </th>
                <th>
                    会员姓名
                </th>
                <th>
                    交易额 
                </th>
                <th>
                    运费
                </th>
                <th>
                    下单时间
                </th>
                <th>
                    配送方式
                </th>
                <th>
                    送货时间
                </th>
                <th>
                    支付状态
                </th>
                <th>
                    操作
                </th>
            </tr>
            <asp:ListView ID="lv" runat="server" ItemPlaceholderID="items" 
                onitemcommand="lv_ItemCommand" onitemdatabound="lv_ItemDataBound">
                <LayoutTemplate>
                    <tr id="items" runat="server">
                    </tr>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr id="row" runat="server">
                        <td class="sp">
                            &nbsp;
                        </td>
                        <td class="chk">
                            <asp:CheckBox ID="chkSelect" runat="server" />
                        </td>
                        <td>                           
                            <asp:HyperLink ID="lnkID" runat="server"  NavigateUrl='<%#"Detail.aspx?ID=" + Encrypt(Eval("ID")) %>'><%#Eval("ID") %></asp:HyperLink>
                        </td>
                        <td>
                            <%#Eval("MemberLoginName")%>&nbsp;
                        </td>
                        <td>
                            <%#Eval("TradeValue")%>&nbsp;
                        </td>
                        <td>
                            <%#Eval("Freight")%>&nbsp;
                        </td>
                        <td>
                            <%#Eval("InputTime")%>&nbsp;
                        </td>
                        <td>
                            <%#((ECommerce.Model.Order.LogisticType)(int)Eval("LogisticsType")).ToString()%>
                        </td>
                        <td>
                            <%#Eval("DeliverTime")%>&nbsp;
                        </td>
                        <td>
                            <%#((ECommerce.Model.Order.PayState)(int)Eval("PayState")).ToString() %>
                        </td>
                        <td>
                            <asp:HyperLink ID="lnkDetail" runat="server" NavigateUrl='<%#"Detail.aspx?ID=" + Encrypt(Eval("ID")) %>'>[详细]</asp:HyperLink>
                            <asp:LinkButton ID="btnSendConfirm" runat="server" CommandName="SendConfirm" CommandArgument='<%#Eval("ID") %>'>[确认发货]</asp:LinkButton>
                             <asp:HyperLink ID="lnkExport" runat="server" NavigateUrl='<%#"Export.aspx?ID=" + Encrypt(Eval("ID")) %>'>[导出]</asp:HyperLink>

                        </td>
                    </tr>
                </ItemTemplate>
                <EmptyDataTemplate>
                    <tr>
                        <td colspan="11" class="empty">
                            没有订单
                        </td>
                    </tr>
                </EmptyDataTemplate>
            </asp:ListView>
        </table>
    </div>
    <div id="foot">
        <uc1:Selecter ID="Selecter1" runat="server" />
        <asp:Literal ID="litPager" runat="server"></asp:Literal></div>
    <div style="clear: both;" />
    <div id="toolbar_bottom">
        <asp:Button ID="btnTransfer" runat="server" Text="处理"  CausesValidation="False"
            Style="letter-spacing: normal;" onclick="btnTransfer_Click" />      
        <asp:Button ID="btnSend" runat="server" Text="配送" onclick="btnSend_Click" />
        <asp:Button ID="btnComplete" runat="server" Text="完成" 
            onclick="btnComplete_Click" />
        <asp:Button ID="btnFail" runat="server" Text="失败" onclick="btnFail_Click" />
    </div>
</asp:Content>
